<?php
class MySoapServer
{
	public function getMessage()
	{
		return 'Hello, World!';
	}
	
	public function addNumbers($num1, $num2)
	{
		return $num1 + $num2;
	}
}
sleep(2);
$uri = 'http://localhost/mvc/Examples/XmlAndWebService/WebService/Soap/';
$options = array('uri' => $uri);
try{
	$server = new SoapServer(NULL, $options);
	$server->setClass('MySoapServer');
	$server->handle();
}catch(SoapFault $e){
	var_dump($e->getMessage());
}